package com.example.lg.aliplaydemo470.activity

import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.example.lg.aliplaydemo470.R
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)


        button1.setOnClickListener(View.OnClickListener { view: View? ->
            startActivity(Intent(this, TrailersViewActivity::class.java))
        })
        button2.setOnClickListener(View.OnClickListener { view: View? ->
            startActivity(Intent(this, SmallScreenActivity::class.java))
        })

        button3.setOnClickListener(View.OnClickListener { view: View? ->
            startActivity(Intent(this, DouYinVPJZPlayActivity::class.java))
        })
        button5.setOnClickListener(View.OnClickListener { view: View? ->
            startActivity(Intent(MainActivity@ this, DouYinVPAliPlayActivity::class.java))
        })
        button4.setOnClickListener(View.OnClickListener { view: View? ->
            startActivity(Intent(MainActivity@ this, AliListPlayerActivity::class.java))
        })

    }
}
